package com.example.demo.study.JavaIO.io;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class ReaderTest {
    public static void main(String[] args) throws IOException {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        System.out.println("请输入字符，输入q退出:");
        String c;
        do {
            c=bufferedReader.readLine();
            System.out.println(c);
        }while (!c.equals("stop"));

    }
}
